{extend name="common:base" /}

{block name="title"}登陆 - 天佑二手货{/block}

{block name="header"}
<header>
    <div class="am-g">
        <h1>天佑二手货</h1>
        <p>TianYou Secondary Market
            <br/>交大人自己的二手市场！</p>
    </div>
    <hr />
</header>
{/block}

{block name="main"}
<div class="am-g">
    <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
        {volist name='tables' id='value'}
        <h3>{$value['TABLE_NAME']}({$value['TABLE_COMMENT']})</h3>
        <table class="am-table am-table-bordered am-table-striped am-text-nowrap am-table-responsive am-table-hover">
                  <thead>
                      <tr>
                          <th>字段</th>
                          <th>类型</th>
                          <th>NULL</th>
                          <th>默认</th>
                          <th>注释</th>
                      </tr>
                  </thead>
                  <tbody>
                    {foreach $value['COLUMN'] as $value1}
                      <tr>
                          <td>{$value1['COLUMN_NAME']}&nbsp;&nbsp;{$value1['EXTRA'] or ''}</td>
                          <td>{$value1['COLUMN_TYPE']}</td>
                          <td>{$value1['IS_NULLABLE']}</td>
                          <td>{$value1['COLUMN_DEFAULT']}</td>
                          <td>{$value1['COLUMN_COMMENT']}</td>
                      </tr>
                      {/foreach}
                  </tbody>
            </table>
        {/volist}
    </div>
</div>
{/block}
